﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class DisbandRoomPanelContent : UIBaseContent
{
    public DisbandRoomPanelContent() : base(UIType.DisbandRoomPanelContentType)
    { }
}

public class DisbandRoomPanel : UIBaseView
{
    public Button ReturnButton;
    private void Awake()
    {
        ReturnButton.onClick.AddListener(() => {
            Singleton<ContentManager>.GetInstance().Push(new RoomListPanelContent());
        });
    }
    public override void OnEnter(UIBaseContent uIContent)
    {
        GetComponent<BaseCG>().Show();
    }
    public override void OnPause(UIBaseContent uIContent)
    {
        GetComponent<BaseCG>().Hide();
    }
    public override void OnResume(UIBaseContent uIContent)
    {
        GetComponent<BaseCG>().Show();
    }
    public override void OnExit(UIBaseContent uIContent)
    {
        GetComponent<BaseCG>().Hide();
    }
}
